// 登录接口需要携带参数ts类型
export interface loginForm {
    username: string
    password: string
  }
  
  // 登录接口出参
  interface dataType {
    token?: string
    message?: string
  }
  export interface loginResponseData {
    code: number
    data: dataType
  }
  
  // 获取用户信息出参
  interface userInfo {
    userId: number
    avatar: string
    username: string
    password: string
    desc: string
    roles: string[]
    buttons: string[]
    routes: string[]
    token: string
  }
  interface user {
    checkUser: userInfo
  }
  export interface userResponseData {
    code: number
    data: user
  }